import Dexie from 'dexie';

export let dbHelper = {

    clearAllData() {
        //   this.getDbHelper().delete();
    },

    getDbHelper() {
        const db = new Dexie('customerService');
        db.version(1).stores({
            currentUser: '&id,avatar,username,nickname',
            userLoginState: '++id,username,password,isSavePassword,isAutoLogin'
        });
        db.open();
        return db;
    }
}